package com.zyark.web.response;

/**
 * ClassName: ResponseCode  <br/>
 * Function:  <br/>
 * Reason:  <br/>
 * Date: 2017-05-24 11:23 <br/>
 *
 * @author Ku_ker
 * @version 1.0
 * @JDK 1.7
 */
public enum ResponseCode {

    SUCCESS(200, "请求成功！"), FAIL(500, "服务器异常！"), NO_DATA(300, "未找到数据！"), ILLEGAL(400, "非法操作！"), IS_BLANK(401, "不能为空！");

    /**
     * 返回的编码
     */
    private int code;

    /**
     * 编码代表的意思
     */
    private String msg;

    private ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
